package com.cy.pet.item.controller;

import com.cy.pet.common.pojo.BrowerLog;
import com.cy.pet.common.service.BrowerLogService;
import com.cy.pet.common.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: LiuXingYu
 * @date: 2021/10/8 10:07
 */

@RestController
@RequestMapping("/browerLog")
public class BrowerLogController {
    @Autowired
    private BrowerLogService browerLogService;
    @GetMapping("/getBrowerLogs")
    public SysResult getBrowerLogs(){
        List<BrowerLog> logs = browerLogService.getLogs();
        return SysResult.success(logs);
    }
}

